package com.leyou.item.api;

import com.leyou.common.vo.PageResult;
import com.leyou.item.pojo.Brand;
import com.leyou.item.pojo.Category;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author huangxin
 * @date 2019/4/30-13:35
 */

public interface BrandApi {
    /**
     * 根据id查询品牌
     *
     * @param id
     * @return
     */
    @GetMapping("brand/{id}")
    public Brand queryBrandByid(@PathVariable("id") Long id);


    @GetMapping("brand/list")
    List<Brand> queryBrandByIds(@RequestParam("ids") List<Long> ids);

}
